//
//  BaseTableViewCell.m
//  智积分
//
//  Created by apple on 2018/5/18.
//  Copyright © 2018年 Cynic. All rights reserved.
//

#import "BaseTableViewCell.h"

@implementation BaseTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)LoadImageWithframe:(CGRect)frame withData:(NSString *)data baseOnView:(UIView *)baseview{
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:frame];
    imageView.image = [UIImage imageNamed:data];
    [baseview addSubview:imageView];
}

-(id)Nnll:(id)olpart withPlace:(id)place{//排除nil 替换place
    if ([olpart isKindOfClass:[NSNumber class]]) {
        return [NSString stringWithFormat:@"%@",olpart];
    }
    
    if ([olpart isKindOfClass:[NSNull class]] || olpart == nil || [olpart length] == 0) {
        return place;
    }
    return olpart;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
